﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="ApproveRequisition.aspx.cs" Inherits="PresentationLayer.ApproveRequisition" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    
    <style>
         .Hide { display:none; }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div align="center">
       <h2>View Requisition for Approval</h2>
        <br />
        <div class="form-inline">
                    <label class="control-label" for="ddlEmployee">Employee Name:</label> 
                    <asp:DropDownList ID="ddlEmployee" CssClass="form-control" AutoPostBack="true" runat="server" OnSelectedIndexChanged="ddlEmployee_SelectedIndexChanged" Width="203px" ></asp:DropDownList>
                    
        </div>
        <br />
        
        <div class="table">
            <asp:GridView ID="gvRequisition" runat="server" AutoGenerateColumns="False" EmptyDataText="Currently, there is no requisition to approve" OnRowCommand="gvRequisition_RowCommand" CssClass="table-condensed table-hover table-striped table-bordered">
            <Columns>
                    <asp:BoundField DataField="ReqID" HeaderText="Requisition ID">
                         <ItemStyle BorderStyle="Solid" />
                     </asp:BoundField>
                    <asp:BoundField DataField="RequestedBy" HeaderText="Employee Code" HeaderStyle-CssClass="Hide" ItemStyle-CssClass="Hide">
<HeaderStyle CssClass="Hide"></HeaderStyle>

                         <ItemStyle BorderStyle="Solid" />
                     </asp:BoundField>
                    <asp:BoundField DataField="EmployeeName" HeaderText="Employee Name">
                         <ItemStyle BorderStyle="Solid" />
                     </asp:BoundField>
                     <asp:BoundField DataField="ReqDate" HeaderText="Requested Date" >
                         <ItemStyle BorderStyle="Solid" />
                     </asp:BoundField>
                  <asp:BoundField DataField="ApprovalStatus" HeaderText="Status">
                         <ItemStyle BorderStyle="Solid" />
                     </asp:BoundField>
                  <asp:buttonfield buttontype="Button"  commandname="Select" headertext="Detail" text="View Detail">
                    <ControlStyle CssClass="btn-primary" />
                    </asp:buttonfield>
            </Columns>
                
        </asp:GridView>
        </div>
        
    </div>
</asp:Content>
